#include "RBTree.h"
using namespace std;
namespace ssy
{
	template<class K>
	class set
	{
		struct SetKOfT
		{
			const K& operator()(const K& k)
			{
				return k;
			}
		};
	public:
		typedef typename ssy::RBTree<K, K, SetKOfT>::const_iterator iterator;
		typedef typename ssy::RBTree<K, K, SetKOfT>::const_iterator const_iterator;

		iterator begin() const
		{
			return _t.begin();
		}

		iterator end() const
		{
			return _t.end();
		}

		pair<iterator, bool> insert(const K& kv)
		{
			pair<typename ssy:: RBTree<K, K, SetKOfT>::iterator, bool> ret = _t.insert(kv);
			return pair<iterator, bool>(ret.first, ret.second);
		}

	private:
		RBTree<K, K, SetKOfT> _t;
	};
}
